/*
*********************************************************************************************************
*                                                uC/OS-II
*                                          The Real-Time Kernel
*
*                        (c) Copyright 1992-1998, Jean J. Labrosse, Plantation, FL
*                                           All Rights Reserved
*
*                                           MASTER INCLUDE FILE
*********************************************************************************************************
*/

/*
*********************************************************************************************************
* Keil C port.
* By: John X. Liu (johnxliu@163.com)
*********************************************************************************************************
*/

#ifndef __INCLUDES__
#define __INCLUDES__

//#include	<reg52.h>
#include	<c8051F020.h>

#include    <stdio.h>
#include    <string.h>
#include    <ctype.h>
#include    <stdlib.h>
#include    <setjmp.h>

#include <intrins.h>  
#include <TP_8051_Lib.h> 
#include <Ports_Declarations_TP_Emb.h>  
#include <Asm_8051_Lib.h> 
#include <LIB_TP_Emb_Systeme_de_Tri_Gestion_IOs.h>
#include <LIB_TP_Emb_Systeme_de_Tri_Gestion_INT1.h>
#include <LIB_TP_Emb_Systeme_de_Tri_Gestion_Timer2.h>
#include <LIB_TP_Emb_Systeme_de_Tri_Gestion_UART0.h>
#include <LIB_TP_Emb_Systeme_de_Tri_Gestion_Watchdog.h>
#include <LIB_TP_Emb_Systeme_de_Tri_Gestion_ADC0.h>
 

/* These macros are intended to be used to re-declare the uC/OS-II functions to be reentrant */
#define TASK_REENTRANT		large reentrant
#define KCREENTRANT			large reentrant

#include    "os_cpu.h"
#include    "os_cfg.h"

/* These Keil keywords are used in uC/OS-II source files. So the next macro definitions are needed 
*/
#define data	ucos51_data
#define pdata	ucos51_pdata
#define xdata	ucos51_xdata

#include    "ucos_ii.h"
#include    "os_kc51.h"		/* MUST NOT REMOVE THIS LINE */

#endif
